﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class hero
    {
        private string inputName;
        private string heroName;
        private string heroInfo;
        private int attack;
        private int defense;
        private int speed;
        public hero(string InputName, string heroName, string heroInfo, int attack, int defense, int speed)
        {
            this.InputName = InputName;
            this.HeroName = HeroName;
            this.HeroInfo = HeroInfo;
            this.Attack = Attack;
            this.Defense = Defense;
            this.Speed = Speed;
        }
        public hero() 
        {
            
        }
        public void hello()
        {
            Console.WriteLine("输入的姓名是{0}", this.InputName);
            Console.WriteLine("英雄的姓名为{0}", this.HeroName);
            Console.WriteLine("英雄的信息为{0}", this.HeroInfo);
            Console.WriteLine("英雄的攻击力为{0}", this.Attack);
            Console.WriteLine("英雄的防御力为{0}", this.Defense);
            Console.WriteLine("英雄的速度为{0}", this.Speed);
        }
        public string InputName
        {
            get { return this.inputName; }
            set { this.inputName = value; }
        }
        public string HeroName
        {
            get { return this.heroName; }
            set { this.heroName = value; }
        }
        public string HeroInfo
        {
            get { return this.heroInfo; }
            set { this.heroInfo = value; }
        }
        public int Attack
        {
            get { return this.attack; }
            set { this.attack = value; }
        }
        public int Defense
        {
            get { return this.defense; }
            set { this.defense = value; }
        }
        public int Speed
        {
            get { return this.speed; }
            set { this.speed = value; }
        }
    }
}
